The following table shows the attributes.
| Name | Description | Access
|
| mode | Returns the current mode: 0 for device mode, 1 for host mode | Read
|
| hnpcapable | Gets or sets the "HNP-capable" bit in the Core USB Configuraton Register. Read returns the current value. | Read/Write
|
| srpcapable | Gets or sets the "SRP-capable" bit in the Core USB Configuraton Register. Read returns the current value. | Read/Write
|
| hsic_connect | Gets or sets the "HSIC-Connect" bit in the GLPMCFG Register. Read returns the current value. | Read/Write
|
| inv_sel_hsic | Gets or sets the "Invert Select HSIC" bit in the GLPMFG Register. Read returns the current value. | Read/Write
|
| hnp | Initiates the Host Negotiation Protocol. Read returns the status. | Read/Write
|
| srp | Initiates the Session Request Protocol. Read returns the status. | Read/Write
|
| buspower | Gets or sets the Power State of the bus (0 - Off or 1 - On) | Read/Write
|
| bussuspend | Suspends the USB bus. | Read/Write
|
| busconnected | Gets the connection status of the bus | Read
|
| gotgctl | Gets or sets the Core Control Status Register. | Read/Write
|
| gusbcfg | Gets or sets the Core USB Configuration Register | Read/Write
|
| grxfsiz | Gets or sets the Receive FIFO Size Register | Read/Write
|
| gnptxfsiz | Gets or sets the non-periodic Transmit Size Register | Read/Write
|
| gpvndctl | Gets or sets the PHY Vendor Control Register | Read/Write
|
| ggpio | Gets the value in the lower 16-bits of the General Purpose IO Register or sets the upper 16 bits. | Read/Write
|
| guid | Gets or sets the value of the User ID Register | Read/Write
|
| gsnpsid | Gets the value of the Synopsys ID Regester | Read
|
| devspeed | Gets or sets the device speed setting in the DCFG register | Read/Write
|
| enumspeed | Gets the device enumeration Speed. | Read
|
| hptxfsiz | Gets the value of the Host Periodic Transmit FIFO | Read
|
| hprt0 | Gets or sets the value in the Host Port Control and Status Register | Read/Write
|
| regoffset | Sets the register offset for the next Register Access | Read/Write
|
| regvalue | Gets or sets the value of the register at the offset in the regoffset attribute. | Read/Write
|
| remote_wakeup | On read, shows the status of Remote Wakeup. On write, initiates a remote wakeup of the host. When bit 0 is 1 and Remote Wakeup is enabled, the Remote Wakeup signalling bit in the Device Control Register is set for 1 milli-second. | Read/Write
|
| rem_wakeup_pwrdn | On read, shows the status core - hibernated or not. On write, initiates a remote wakeup of the device from Hibernation. | Read/Write
|
| mode_ch_tim_en | This bit is used to enable or disable the host core to wait for 200 PHY clock cycles at the end of Resume to change the opmode signal to the PHY to 00 after Suspend or LPM. | Read/Write
|
| fr_interval | On read, shows the value of HFIR Frame Interval. On write, dynamically reload HFIR register during runtime. The application can write a value to this register only after the Port Enable bit of the Host Port Control and Status register (HPRT.PrtEnaPort) has been set | Read/Write
|
| disconnect_us | On read, shows the status of disconnect_device_us. On write, sets disconnect_us which causes soft disconnect for 100us. Applicable only for device mode of operation. | Read/Write
|
| regdump | Dumps the contents of core registers. | Read
|
| spramdump | Dumps the contents of core registers. | Read
|
| hcddump | Dumps the current HCD state. | Read
|
| hcd_frrem | Shows the average value of the Frame Remaining field in the Host Frame Number/Frame Remaining register when an SOF interrupt occurs. This can be used to determine the average interrupt latency. Also shows the average Frame Remaining value for start_transfer and the "a" and "b" sample points. The "a" and "b" sample points may be used during debugging bto determine how long it takes to execute a section of the HCD code. | Read
|
| rd_reg_test | Displays the time required to read the GNPTXFSIZ register many times (the output shows the number of times the register is read). | Read
|
| wr_reg_test | Displays the time required to write the GNPTXFSIZ register many times (the output shows the number of times the register is written). | Read
|
| lpm_response | Gets or sets lpm_response mode. Applicable only in device mode. | Write
|
| sleep_status | Shows sleep status of device. | Read
|
Example usage: To get the current mode: cat /sys/devices/lm0/mode
To power down the USB: echo 0 > /sys/devices/lm0/buspower
1.3.9.1